<div id="addTaskList" method="post" action="#">
    	<div id="taskHeader">
    		<h2>Add new TaskList</h2>	
    	</div>
    	
    	<div id="addTaskList-body">
	    	<h2>Give the list a name</h2>
	    	<?php 
	    		$pid = Yii::app()->request->getParam("pid");
    			$form = $this->beginWidget('CActiveForm',array(
    				'id'=>'add-task-list',
    				'enableAjaxValidation'=>true,
    				'enableClientValidation'=>true,
    				'action'=>array('/tasks/addTaskList','pid'=>$pid),
    			));
    				echo $form->textField($model,'task_list_name',array(
    					'style'=>"width:90%;height: 30px;font-size: 15px;",
    				));
    				echo $form->error($model,'task_list_name');
    				echo "<br>";
    				echo Chtml::label('Do you have any notes for this list? Enter them here:','taskListDes',array(
						'style'=>"margin-top: 10px",    					
    				));
    				echo $form->textArea($model,'task_list_description',array(
    					'id'=>"taskListDes",
						'style'=>"width:90%;height: 90px;margin-left:15px",
    				));
    				echo $form->error($model,'task_list_description');
    		?>
    	</div>
    	<div id="addTaskList-button">
    		
    		<?php 
    			echo Chtml::submitButton('Add this taskList',
    				array(
    					'id'=>'addButton',
    					'style'=>"margin-left:20px",
    				)
    			)
    		?>
    		or 
    		<a href="#" class="popupCancel" style="text-decoration: line-through;">Cancel</a>
    	
    	</div>
    		
    		<?php $this->endWidget();?>
</div>